//
//  ApplayAdditionVC.m
//  LoveTrail
//
//  Created by giantumbrella on 15/6/16.
//  Copyright (c) 2015年 赵娟. All rights reserved.
//

#import "ApplayAdditionVC.h"

@interface ApplayAdditionVC ()

@end

@implementation ApplayAdditionVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"页面主体@2x"]];
    
    [self initWithSubViews];
}

#pragma mark 添加视图
- (void)initWithSubViews
{
    UIButton *backButton = [[UIButton alloc] initWithFrame:CGRectMake(10, 20, 20, 30)];
    [backButton setBackgroundImage:[UIImage imageNamed:@"返回@2x"] forState:UIControlStateNormal];
    [self.view addSubview:backButton];
    [backButton addTarget:self action:@selector(backUpView) forControlEvents:UIControlEventTouchUpInside];
}

#pragma mark 返回到上一个界面
- (void)backUpView
{
    [self dismissViewControllerAnimated:YES completion:nil];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}

@end
